package com.eqdd.yiqidian.ui.mine.maker.fragment

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.eqdd.yiqidian.R
import com.eqdd.yiqidian.base.Config
import com.eqdd.yiqidian.ui.discover.makerspace.MakerCourseListActivity
import com.eqdd.yiqidian.ui.yiqiyue.ArticleInfoActivity
import kotlinx.android.synthetic.main.fragment_maker_product.view.*
import org.jetbrains.anko.sdk25.coroutines.onClick
import org.jetbrains.anko.startActivity

/**
 * Created by jhj on 18-7-4.
 */
class MakerProductFragment : Fragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.fragment_maker_product, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        val guid = arguments?.getString("makerGuid")
        view.tv_course.onClick {
            activity?.startActivity<MakerCourseListActivity>(Config.GUID to guid)
        }


    }


}